home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 524 / 524.xpi / chrome / mid.jar / content / dictionaries.xsl < prev    next >
Extensible Markup Language  |  2009-10-30  |  1KB  |  52 lines

  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2.  
  3. <!DOCTYPE  overlay SYSTEM "chrome://mid/locale/dictionaries.dtd" >
  4.  
  5. <xsl:stylesheet version="1.0"
  6. xmlns:mid="http://mid.mozdev.org/dictionaries"
  7. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  8.  
  9.  
  10. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
  11. <xsl:template match="/">
  12. <html>
  13. <head>
  14. <link rel="stylesheet" type="text/css" href="../skin/classic/dict.css"/> 
  15. </head>
  16.  
  17.  
  18. <body>
  19. <table class="toptable">
  20. <caption>&dict.showdict.header;
  21. <div class="ctrlf">&dict.showdict.crtlf;</div>
  22. </caption>
  23. <tr>
  24.     <td  class="hno">&dict.showdict.header.no;</td>
  25.     <td  class="htypes">&dict.showdict.header.type;</td>
  26.     <td  class="hshortnames">&dict.showdict.header.name;</td>
  27.     <td  class="huris">&dict.showdict.header.uri;</td>
  28.     <td  class="hplace" > </td>
  29. </tr>
  30. </table>
  31. <table> 
  32. <div class="scrolled" >
  33.  
  34. <xsl:for-each select="/overlay/middictionaries/mid:dict">
  35. <xsl:sort select="@type"/>
  36. <xsl:sort select="@label"/>
  37. <xsl:variable name="iCount" select="position()" />
  38.     <tr class="scrolledrow">
  39.     <td class="no"><xsl:value-of select="$iCount"/></td>
  40.     <td class="types"><xsl:value-of select="@type"/></td>
  41.     <td class="shortnames"><xsl:value-of select="@label"/></td>
  42.     <td class="uris"><xsl:value-of select="@url"/></td>
  43. </tr>
  44. </xsl:for-each>
  45. </div>
  46. </table>
  47. </body>
  48. </html>
  49. </xsl:template>
  50.  
  51. </xsl:stylesheet>
  52.